package com.smart.manager.system.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.common.entities.option.SelectOption;
import com.smart.manager.system.entities.enums.DictRwState;
import com.smart.manager.system.entities.enums.DictState;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import java.util.ArrayList;

/**
 * 系统管理-模块信息表
 *
 * @author Administrator
 * @TableName system_module
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Accessors(chain = true)
@Data
public class SystemDict extends BaseLongModel {

    /**
     * 字典代码
     */

    @ApiModelProperty("字典代码")
    private String code;
    /**
     * 字典标题
     */

    @ApiModelProperty("字典标题")
    private String title;
    /**
     * 是否允许编辑
     */

    @ApiModelProperty("是否允许编辑")
    private DictRwState rwState;
    /**
     * 调用状态 枚举
     */

    @ApiModelProperty("调用状态 枚举")
    private DictState state;
    /**
     * 字典描述 枚举
     */

    @ApiModelProperty("字典描述 枚举")
    private String description;
    /**
     * 字典明细
     */

    @DbJson
    private ArrayList<SelectOption> items;

}
